import { Select } from 'antd';

const { Option } = Select;
export default function JSampleSelect(props) {
  /**
   *  选择框
   *  @param options -Map类型
   *  */
  const { options, ...otherProps } = props;
  return (
    <Select {...otherProps}>
      <Option value="" disabled>
        请选择
      </Option>
      {[...options].map(([key, value]) => {
        return (
          <Option value={key} key={key}>
            {value}
          </Option>
        );
      })}
    </Select>
  );
}
